package com.tangcco.lockwell.test;


import java.util.List;


// 使用JPA规范将Questionnaire类映射到数据库表，若不需要持久化可去掉Entity等相关注解，这里假设可能会将问卷数据持久化存储

public class Questionnaire {

    // 用于存储题目相关的资料或素材信息，对应JSON中的"materials"字段
    private List<Material> materials;
    // 用于存储题目相关信息，对应JSON中的"questions"字段
    private List<String> questions;
    private List<Material> writing; // 添加新字段
    // 默认构造函数，JPA等框架在实例化对象等操作时可能会用到
    public Questionnaire() {
    }

    public Questionnaire(List<Material> materials, List<String> questions, List<Material> writing) {
        this.materials = materials;
        this.questions = questions;
        this.writing = writing;
    }

    public Questionnaire(List<Material> materials, List<String> questions) {
        this.materials = materials;
        this.questions = questions;
    }

    public List<Material> getWriting() {
        return writing;
    }

    public void setWriting(List<Material> writing) {
        this.writing = writing;
    }

    public List<Material> getMaterials() {
        return materials;
    }

    public void setMaterials(List<Material> materials) {
        this.materials = materials;
    }

    public List<String> getQuestions() {
        return questions;
    }

    public void setQuestions(List<String> questions) {
        this.questions = questions;
    }

    @Override
    public String toString() {
        return "Questionnaire{" +
                "materials=" + materials +
                ", questions=" + questions +
                ", writing='" + writing + '\'' +
                '}';
    }
}